Skip to content

Retire gtk macos - #26

Merged
bytetroll merged 2 commits into
masterfrom
retire-gtk-macos
Nov 9, 2026
Merged

bytetroll merged 2 commits into
masterfrom
retire-gtk-macos

Conversation

@bytetroll

Copy link
Copy Markdown
Contributor

No description provided.

bytetroll and others added 2 commits November 8, 2026 21:53
The AppKit provider passes its contract against a real window server
session on both hosted architectures, 93 checks each, so the macOS GTK
path has nothing left to do. It was also never viable: a GTK process on
macOS never runs -[NSApplication run], and AppKit answers accessibility
requests from the main run loop, so every accessibility query against
one fails -- including the application element's own role -- and the
process is invisible to assistive technology and to directed input.

Removed: the macOS half of the GTK provider, the private provider build,
runtime and directed-probe scripts with their control tests, the
provider lock file, and the macos-gtk-provider workflow. ui_runtime.cpp
is now the Linux provider only, and since CMake selects Win32 on Windows
and AppKit on macOS it carries no platform conditionals at all; the
remaining conditionals were removed by evaluating them rather than by
editing line ranges.

docs/standard-library/ui.md no longer asks macOS users for
NIL_UI_GTK_DIRECTORY and a GTK runtime, and platform support records the
AppKit result. Linux is unchanged at 572 registered, 0 failed and 3
environment skips.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nil.ui-display skipped on macOS because the contract required Linux,
Xvfb and xauth. macOS has no detachable display to create, so the Darwin
path uses the runner's own window server session and skips only when
there is none, which is a missing session rather than a provider fault.
It runs the provider fixture, the lifecycle fixture and the Matrix
desktop suite, and asserts every language case passed.

The lifecycle observer needed a macOS answer too. Its question is
platform-neutral -- was a window really released, or merely invalidated
-- so only the answerer changes: AppKit is asked for the application's
windows, which counts them whether or not they are on screen, as GTK's
registry does. Its retired GTK-on-macOS branch, which dlopened dylibs
from NIL_UI_GTK_DIRECTORY, is gone. The observer is Objective-C++ on
Darwin, so the lifecycle fixture is compiled as Objective-C++ there.

The interaction suite is deliberately not part of the macOS contract and
the contract says so when it passes. That suite delivers keystrokes to
another process, and macOS requires accessibility trust for posting
events across processes, which a hosted runner does not grant; the limit
is cross-process injection, not the provider. Real input belongs in an
in-process probe like the Win32 fixture's, which is the next step.

The workflow gains a scope input: provider keeps the minutes-long
provider check, display builds the compiler, interpreter and test runner
and runs the language-level contract.

Linux is unchanged at 572 registered, 0 failed and 3 environment skips.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bytetroll
bytetroll merged commit fcab3e2 into master Nov 9, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant